#include "ForceGravity.h"

float ForceGravity::G = -4.81;

ForceGravity::ForceGravity(void)
{
}

ForceGravity::~ForceGravity(void)
{
}

void ForceGravity::applyForce(Particle& particle) {
    particle.addForce(0.0, particle.getMass()*G, 0.0);
}

void ForceGravity::applyForce2(Particle& particle, float g)
{
	particle.addForce(0.0, particle.getMass()*(-g), 0.0);
}